]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensions-tool: Separate create metadata when prompting
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 10 Nov 2019 02:00:37 +0000 (03:00 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Tue, 7 Apr 2020 20:27:00 +0000 (20:27 +0000)
When using the create command's --interactive option, we prompt for
any metadata that wasn't passed on the command line. As every prompt
is preceded by a short multi-line description, it is hard to follow
when everything is lumped together.

Improve legibility by separating all prompts by newlines.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/812

subprojects/extensions-tool/src/command-create.c

index 2ee1369f6b473e695e66ebd8c2cc2f528f7ee4eb..25fcc5ba0fc6b68f4e995d13ebde7b5ac9546d1c 100644 (file)
@@ -202,6 +202,8 @@ prompt_metadata (char **uuid, char **name, char **description)
           line = g_data_input_stream_read_line_utf8 (istream, NULL, NULL, NULL);
         }
       *name = g_strdelimit (line, "\n", '\0');
+
+      g_print ("\n");
     }
 
   if (description != NULL && *description == NULL)
@@ -220,6 +222,8 @@ prompt_metadata (char **uuid, char **name, char **description)
           line = g_data_input_stream_read_line_utf8 (istream, NULL, NULL, NULL);
         }
       *description = g_strdelimit (line, "\n", '\0');
+
+      g_print ("\n");
     }
 
   if (uuid != NULL && *uuid == NULL)
@@ -237,6 +241,8 @@ prompt_metadata (char **uuid, char **name, char **description)
           line = g_data_input_stream_read_line_utf8 (istream, NULL, NULL, NULL);
         }
       *uuid = g_strdelimit (line, "\n", '\0');
+
+      g_print ("\n");
     }
 }